<?php

/*
 * This will create new folder.
 */
include '../../include/config.php';
$bid = $_POST['bid'];
mysql_query("insert into baby_folders (`sr`,`bid`,`folder`,`pwd`) values (NULL,'".$bid."','".$_POST['folder']."','".$_POST['pass']."') ") or die(mysql_error());
$old = umask(0);
mkdir('../../storage/'.$bid.'/folders/'.$_POST['folder'], 0777);
umask($old);
header('Location:http://'.$_SERVER['HTTP_HOST'].'/salusbaby/user/folder/FolderList');

?>
